/*


 */

package jas.bank;

import jas.rpc.RemoteException;
import jas.rpc.RemoteObject;
import jas.rpc.client.RemoteStub;
import jas.rpc.client.RpcClient;

/**
 *
 *
 */
public class Bank_Stub implements Bank, RemoteStub {
    
    private RemoteObject obj;
    private RpcClient client;
    
    public Bank_Stub(RemoteObject obj, RpcClient client) {
        this.obj = obj;
        this.client = client;
    }

    public Account getAccount(String name) throws RemoteException {
        return client.remoteCall(Account.class, obj.getId(), "getAccount", new Object[]{name}, new Class[]{String.class});
    }

    public RemoteObject getRemoteObject() {
        return obj;
    }

}
